package com.block.db.mapper;

import com.block.db.entity.SpecialCostomItemInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 机构推送子任务 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2022-11-11
 */
public interface SpecialCostomItemInfoMapper extends BaseMapper<SpecialCostomItemInfo> {

    /**
     * h5/app 流程，可推送商户任务
     * @return
     */
    List<SpecialCostomItemInfo> getNormalCanPushItmeInfoList();

    /**
     * 查询单个机构的可推送任务
     * 应用于手推
     * @param infoId
     * @return
     */
    List<SpecialCostomItemInfo> getEnableEntityListByInfoId(Long infoId);

    List<SpecialCostomItemInfo> getSourceFixedTaskList(BigDecimal priceAmount);

    List<SpecialCostomItemInfo> getSourceProfitTaskList(BigDecimal priceAmount);
}
